package com.fanghaoran.entity;

/**
 * @Author: win11
 * @Date: 2023/03/14/20:29
 * @Description: 存储用户信息的类
 */
public class Users {
    private int id;
    private String username;
    private String password;
    private String salt;
    private String telephone;
    private String nickname;
    private String gender;
    private String signature;
    private long blocked;
    private long manager;
    private long isPrivate;


    public Users() {
    }

    public Users(int id, String username, String password, String salt, String telephone, String nickname, String gender, String signature, long blocked, long manager, long isPrivate) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.telephone = telephone;
        this.nickname = nickname;
        this.gender = gender;
        this.signature = signature;
        this.blocked = blocked;
        this.manager = manager;
        this.isPrivate = isPrivate;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id 用户id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username 用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return salt
     */
    public String getSalt() {
        return salt;
    }

    /**
     * 设置
     * @param salt 盐
     */
    public void setSalt(String salt) {
        this.salt = salt;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone 手机号
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置
     * @param nickname 昵称
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender 性别
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return signature
     */
    public String getSignature() {
        return signature;
    }

    /**
     * 设置
     * @param signature 个性签名
     */
    public void setSignature(String signature) {
        this.signature = signature;
    }

    /**
     * 获取
     * @return blocked
     */
    public long getBlocked() {
        return blocked;
    }

    /**
     * 设置
     * @param blocked 是否被拉黑
     */
    public void setBlocked(long blocked) {
        this.blocked = blocked;
    }

    /**
     * 获取
     * @return manager
     */
    public long getManager() {
        return manager;
    }

    /**
     * 设置
     * @param manager 是否是管理员
     */
    public void setManager(long manager) {
        this.manager = manager;
    }

    /**
     * 获取
     * @return isPrivate
     */
    public long getIsPrivate() {
        return isPrivate;
    }

    /**
     * 设置
     * @param isPrivate 是否私密信息
     */
    public void setIsPrivate(long isPrivate) {
        this.isPrivate = isPrivate;
    }

    @Override
    public String toString() {
        return "Users{id = " + id + ", username = " + username + ", password = " + password + ", salt = " + salt + ", telephone = " + telephone + ", nickname = " + nickname + ", gender = " + gender + ", signature = " + signature + ", blocked = " + blocked + ", manager = " + manager + ", isPrivate = " + isPrivate + "}";
    }
}
